package com.quanfu.service.impl;

import com.quanfu.dao.StudentDao;
import com.quanfu.pojo.Student;
import com.quanfu.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao;


    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public List<Student> findAll() {

        List<Student> studentList = studentDao.queryAll();
        System.out.println("studentService" + studentList);


        return studentList;
    }
}
